package com.sx.zongzhi.modle;

import com.sx.zongzhi.bean.AppealBean;
import com.sx.zongzhi.bean.AppealDetailBean;
import com.sx.zongzhi.bean.AppealProcessBean;
import com.sx.zongzhi.bean.AppealTypeBean;
import com.sx.zongzhi.bean.CompanyAppealBean;
import com.sx.zongzhi.bean.CompanyBean;
import com.sx.zongzhi.bean.ContactBean;
import com.sx.zongzhi.bean.DisputeBean;
import com.sx.zongzhi.bean.DisputeDetailBean;
import com.sx.zongzhi.bean.EconomicOrganizionBean;
import com.sx.zongzhi.bean.EducationBean;
import com.sx.zongzhi.bean.EventTypeBean;
import com.sx.zongzhi.bean.KeyAreaBean;
import com.sx.zongzhi.bean.KeyAreaDetailBean;
import com.sx.zongzhi.bean.KeyPunishBean;
import com.sx.zongzhi.bean.KeyPunishDetailBean;
import com.sx.zongzhi.bean.KeyTradesBean;
import com.sx.zongzhi.bean.KeyTradesDetailBean;
import com.sx.zongzhi.bean.MailBean;
import com.sx.zongzhi.bean.MainPagerBean;
import com.sx.zongzhi.bean.NewSocietyOrganizationBean;
import com.sx.zongzhi.bean.NoReadMesBean;
import com.sx.zongzhi.bean.OrganizingBean;
import com.sx.zongzhi.bean.PhotoBean;
import com.sx.zongzhi.bean.ProcessBean;
import com.sx.zongzhi.bean.PublicBean;
import com.sx.zongzhi.bean.ServiceObjectBean;
import com.sx.zongzhi.bean.ServiceObjectTypeBean;
import com.sx.zongzhi.bean.ServiceRecordBean;
import com.sx.zongzhi.bean.ServiceRecordDetailBean;
import com.sx.zongzhi.bean.ServicerBean;
import com.sx.zongzhi.bean.UserBean;
import com.sx.zongzhi.bean.VersionBean;
import com.sx.zongzhi.bean.WorkLogBean;
import com.sx.zongzhi.net.BaseCallBack;
import com.sx.zongzhi.net.BasePageListBean;
import com.sx.zongzhi.net.BaseResult;
import com.sx.zongzhi.net.ServiceFactory;

import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import okhttp3.MediaType;
import okhttp3.MultipartBody;
import okhttp3.RequestBody;
import retrofit2.Call;


/**
 * Created by XZY on 2017/11/30.
 *  api 代码管理层
 */
public class ApiManager {

    /**
     *  检测更新
     * @return
     */
    public Call getVersionMessage(Map<String,Object> map, BaseCallBack<BaseResult<VersionBean>> callBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<VersionBean>> resultCall = service.getVersionMessage(map);
        resultCall.enqueue(callBack);
        return resultCall;
    }

    /**
     *  获取未读消息数量
     * @return
     */
    public Call getNoReadMessage(Map<String,Object> map, BaseCallBack<BaseResult<NoReadMesBean>> callBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<NoReadMesBean>> resultCall = service.getNoReadMessage(map);
        resultCall.enqueue(callBack);
        return resultCall;
    }

    /**
     * 上传文件
     */
    public static void upLoadMultiFile(Map<String, Object> map, List<File> files,
                                       BaseCallBack<BaseResult<List<PhotoBean>>> baseCallBack) {
        List<MultipartBody.Part> parts = new ArrayList<>();
        if (files != null && files.size() > 0) {
            for (int i = 0; i < files.size(); i++) {
                RequestBody imageBody = RequestBody.create(MediaType.parse("multipart/form-data"), files.get(i));
                MultipartBody.Part part = MultipartBody.Part.createFormData("file", files.get(i).getName(), imageBody);
                parts.add(part);
            }
        }
        ApiManagerService service =ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<List<PhotoBean>>> resultCall = service.upLoadMultiFile(map, parts);
        resultCall.enqueue(baseCallBack);
    }

    /**
     *  根据字典项名称获取数据字典
     * @return
     */
    public Call getPublicList(Map<String,Object> map, BaseCallBack<BaseResult<PublicBean>> callBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<PublicBean>> resultCall = service.getPublicList(map);
        resultCall.enqueue(callBack);
        return resultCall;
    }

    /**
     * 获取学历
     */
    public Call getEducationList(Map<String,Object> map, BaseCallBack<BaseResult<List<EducationBean>>> callBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<List<EducationBean>>> resultCall = service.getEducationList(map);
        resultCall.enqueue(callBack);
        return resultCall;
    }

    /**
     *  登录
     * @return
     */
    public Call login(Map<String,Object> map, BaseCallBack<BaseResult<UserBean>> callBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<UserBean>> resultCall = service.login(map);
        resultCall.enqueue(callBack);
        return resultCall;
    }

    /**
     * 获取首页数据
     * @return
     */
    public Call getMainPager(Map<String,Object> map, BaseCallBack<BaseResult<MainPagerBean>> callBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<MainPagerBean>> resultCall = service.getMainPager(map);
        resultCall.enqueue(callBack);
        return resultCall;
    }

    /**
     * 获取组织机构
     * @return
     */
    public Call getOrg(Map<String,Object> map, BaseCallBack<BaseResult<OrganizingBean>> callBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<OrganizingBean>> resultCall = service.getOrg(map);
        resultCall.enqueue(callBack);
        return resultCall;
    }

    /**
     * 矛盾纠纷新增/修改
     * @param mMap 参数
     */
    public Call addDispute(String url,Map<String,Object> mMap, BaseCallBack<BaseResult<DisputeDetailBean>> callBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<DisputeDetailBean>> resultCall = service.addDispute(url,mMap);
        resultCall.enqueue(callBack);
        return resultCall;
    }

    /**
     * 获取事件类别
     * @param mMap 参数
     */
    public Call getEventTypeList(Map<String,Object> mMap, BaseCallBack<BaseResult<List<EventTypeBean>>> callBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<List<EventTypeBean>>> resultCall = service.getEventTypeList(mMap);
        resultCall.enqueue(callBack);
        return resultCall;
    }

    /**
     * 获取矛盾纠纷列表
     * @return
     */
    public Call getDisputeList(String url,Map<String,Object> map, BaseCallBack<BaseResult<DisputeBean>> callBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<DisputeBean>> resultCall = service.getDisputeList(url,map);
        resultCall.enqueue(callBack);
        return resultCall;
    }

    /**
     * 获取矛盾纠纷详情
     * @param mMap 参数
     */
    public Call getDisputeDetail(Map<String,Object> mMap, BaseCallBack<BaseResult<DisputeDetailBean>> callBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<DisputeDetailBean>> resultCall = service.getDisputeDetail(mMap);
        resultCall.enqueue(callBack);
        return resultCall;
    }

    /**
     * 矛盾纠纷受理
     * @return
     */
    public Call disputeAccept(Map<String,Object> map, BaseCallBack<BaseResult<Boolean>> callBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<Boolean>> resultCall = service.disputeAccept(map);
        resultCall.enqueue(callBack);
        return resultCall;
    }

    /**
     * 矛盾纠纷办理
     * @return
     */
    public Call disputeDeal(String path,Map<String,Object> map, BaseCallBack<BaseResult<Boolean>> callBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<Boolean>> resultCall = service.disputeDeal(path,map);
        resultCall.enqueue(callBack);
        return resultCall;
    }

    /**
     * 获取主办/抄送单位
     * @return
     */
    public Call getCompanyList(String path,Map<String,Object> map, BaseCallBack<BaseResult<CompanyBean>> callBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<CompanyBean>> resultCall = service.getCompanyList(path,map);
        resultCall.enqueue(callBack);
        return resultCall;
    }

    /**
     * 获取矛盾纠纷处理过程
     * @param mMap 参数
     */
    public Call getDisputeProcess(Map<String,Object> mMap, BaseCallBack<BaseResult<List<ProcessBean>>> callBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<List<ProcessBean>>> resultCall = service.getDisputeProcess(mMap);
        resultCall.enqueue(callBack);
        return resultCall;
    }

    /**
     * 获取收件箱列表
     */
    public void getInBoxList(Map<String, Object> map, BaseCallBack<BaseResult<BasePageListBean<MailBean>>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<BasePageListBean<MailBean>>> resultCall = service.getInBoxList(map);
        resultCall.enqueue(baseCallBack);
    }
    /**
     * 获取收件箱详情
     */
    public void getInBoxDetail(Map<String, Object> map, BaseCallBack<BaseResult<MailBean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<MailBean>> resultCall = service.getInBoxDetail(map);
        resultCall.enqueue(baseCallBack);
    }
    /**
     * 删除收件箱
     */
    public void deleteInBox(Map<String, Object> map, BaseCallBack<BaseResult<Boolean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<Boolean>> resultCall = service.deleteInBox(map);
        resultCall.enqueue(baseCallBack);
    }

    /**
     * 获取发件箱列表
     */
    public void getSendBoxList(Map<String, Object> map, BaseCallBack<BaseResult<BasePageListBean<MailBean>>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<BasePageListBean<MailBean>>> resultCall = service.getSendBoxList(map);
        resultCall.enqueue(baseCallBack);
    }
    /**
     * 获取发件箱详情
     */
    public void getSendBoxDetail(Map<String, Object> map, BaseCallBack<BaseResult<MailBean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<MailBean>> resultCall = service.getSendBoxDetail(map);
        resultCall.enqueue(baseCallBack);
    }
    /**
     * 删除发件箱
     */
    public void deleteSendBox(Map<String, Object> map, BaseCallBack<BaseResult<Boolean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<Boolean>> resultCall = service.deleteSendBox(map);
        resultCall.enqueue(baseCallBack);
    }
    /**
     * 获取站内列表
     */
    public void getContactList(Map<String, Object> map, BaseCallBack<BaseResult<BasePageListBean<ContactBean>>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<BasePageListBean<ContactBean>>> resultCall = service.getContactList(map);
        resultCall.enqueue(baseCallBack);
    }
    /**
     * 获取群组列表
     */
    public void getContactMyGroupList(Map<String, Object> map, BaseCallBack<BaseResult<List<ContactBean>>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<List<ContactBean>>> resultCall = service.getContactMyGroupList(map);
        resultCall.enqueue(baseCallBack);
    }
    /**
     * 获取层级列表
     */
    public void getContactOrgLevelList(Map<String, Object> map, BaseCallBack<BaseResult<List<ContactBean>>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<List<ContactBean>>> resultCall = service.getContactOrgLevelList(map);
        resultCall.enqueue(baseCallBack);
    }
    /**
     * 发送消息
     */
    public void addBoxDetail(Map<String, Object> map, BaseCallBack<BaseResult<Boolean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<Boolean>> resultCall = service.addBoxDetail(map);
        resultCall.enqueue(baseCallBack);
    }


    /**
     * 修改用户信息
     */
    public void updatePerson(Map<String, Object> map, BaseCallBack<BaseResult<UserBean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<UserBean>> resultCall = service.updatePerson(map);
        resultCall.enqueue(baseCallBack);
    }
    /**
     * 修改用户信息
     */
    public void updatePassword(Map<String, Object> map, BaseCallBack<BaseResult<UserBean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<UserBean>> resultCall = service.updatePassword(map);
        resultCall.enqueue(baseCallBack);
    }

    /**
     * 获取诉求服务列表
     */
    public void getAppealList(Map<String, Object> map, BaseCallBack<BaseResult<AppealBean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<AppealBean>> resultCall = service.getAppealList(map);
        resultCall.enqueue(baseCallBack);
    }

    /**
     * 获取诉求服务类型列表
     */
    public void getAppealTypeList(Map<String, Object> map, BaseCallBack<BaseResult<List<AppealTypeBean>>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<List<AppealTypeBean>>> resultCall = service.getAppealTypeList(map);
        resultCall.enqueue(baseCallBack);
    }


    /**
     * 诉求服务办理/受理
     */
    public void acceptAppeal(Map<String, Object> map, BaseCallBack<BaseResult<Boolean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<Boolean>> resultCall = service.acceptAppeal(map);
        resultCall.enqueue(baseCallBack);
    }


    /**
     * 诉求服务获取主办/抄办
     */
    public void getCompanyAppealList(Map<String, Object> map, BaseCallBack<BaseResult<List<CompanyAppealBean.RowsBean>>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<List<CompanyAppealBean.RowsBean>>> resultCall = service.getCompanyAppealList(map);
        resultCall.enqueue(baseCallBack);
    }

    /**
     * 获取诉求服务处理记录
     */
    public void getAppealProList(Map<String, Object> map, BaseCallBack<BaseResult<List<AppealProcessBean>>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<List<AppealProcessBean>>> resultCall = service.getAppealProList(map);
        resultCall.enqueue(baseCallBack);
    }

    /**
     * 诉求服务详情
     */
    public void getAppealDetail(Map<String, Object> map, BaseCallBack<BaseResult<AppealDetailBean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<AppealDetailBean>> resultCall = service.getAppealDetail(map);
        resultCall.enqueue(baseCallBack);
    }

    /**
     * 获取服务记录列表
     */
    public void getServiceRecordList(Map<String, Object> map, BaseCallBack<BaseResult<ServiceRecordBean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<ServiceRecordBean>> resultCall = service.getServiceRecordList(map);
        resultCall.enqueue(baseCallBack);
    }

    /**
     * 获取服务记录详情
     */
    public void getServiceRecordDetail(Map<String, Object> map, BaseCallBack<BaseResult<ServiceRecordDetailBean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<ServiceRecordDetailBean>> resultCall = service.getServiceRecordDetail(map);
        resultCall.enqueue(baseCallBack);
    }


    /**
     * 添加服务记录
     */
    public void addServiceRecord(Map<String, Object> map, BaseCallBack<BaseResult<ServiceRecordDetailBean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<ServiceRecordDetailBean>> resultCall = service.addServiceRecord(map);
        resultCall.enqueue(baseCallBack);
    }
    /**
     * 获取服务人员列表
     */
    public void getServicerList(Map<String, Object> map, BaseCallBack<BaseResult<ServicerBean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<ServicerBean>> resultCall = service.getServicerList(map);
        resultCall.enqueue(baseCallBack);
    }

    /**
     * 获取服务对象类型
     */
    public void getServiceObjectTypeList(Map<String, Object> map, BaseCallBack<BaseResult<List<ServiceObjectTypeBean>>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<List<ServiceObjectTypeBean>>> resultCall = service.getServiceObjectTypeList(map);
        resultCall.enqueue(baseCallBack);
    }

    /**
     * 获取服务对象列表
     */
    public void getServiceObject(Map<String, Object> map, BaseCallBack<BaseResult<ServiceObjectBean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<ServiceObjectBean>> resultCall = service.getServiceObject(map);
        resultCall.enqueue(baseCallBack);
    }
    /**
     * 获取工作日志列表
     */
    public void getWorkLogList(Map<String, Object> map, BaseCallBack<BaseResult<BasePageListBean<WorkLogBean>>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<BasePageListBean<WorkLogBean>>> resultCall = service.getWorkLogList(map);
        resultCall.enqueue(baseCallBack);
    }
    /**
     * 添加工作日志
     */
    public void addWorkLog(Map<String, Object> map, BaseCallBack<BaseResult<WorkLogBean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<WorkLogBean>> resultCall = service.addWorkLog(map);
        resultCall.enqueue(baseCallBack);
    }
    /**
     * 删除工作日志信息
     */
    public void deleteWorkLog(Map<String, Object> map, BaseCallBack<BaseResult<Boolean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<Boolean>> resultCall = service.deleteWorkLog(map);
        resultCall.enqueue(baseCallBack);
    }
    /**
     * 修改工作日志信息
     */
    public void updateWorkLog(Map<String, Object> map, BaseCallBack<BaseResult<WorkLogBean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<WorkLogBean>> resultCall = service.updateWorkLog(map);
        resultCall.enqueue(baseCallBack);
    }
    /**
     * 获取重点地区排查整治列表
     */
    public void getKeyPunishList(String path,Map<String, Object> map, BaseCallBack<BaseResult<KeyPunishBean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<KeyPunishBean>> resultCall = service.getKeyPunishList(path,map);
        resultCall.enqueue(baseCallBack);
    }

    /**
     * 获取排查整治详情
     */
    public void getKeyPunishDetail(Map<String, Object> map, BaseCallBack<BaseResult<KeyPunishDetailBean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<KeyPunishDetailBean>> resultCall = service.getKeyPunishDetail(map);
        resultCall.enqueue(baseCallBack);
    }

    /**
     * 重点地区排查整治删除
     */
    public void KeyPunishDelete(Map<String, Object> map, BaseCallBack<BaseResult<Boolean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<Boolean>> resultCall = service.KeyPunishDelete(map);
        resultCall.enqueue(baseCallBack);
    }

    /**
     * 重点地区排查整治新增/编辑/同名
     */
    public void AddKeyPunish(String path,Map<String, Object> map, BaseCallBack<BaseResult<Boolean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<Boolean>> resultCall = service.AddKeyPunish(path,map);
        resultCall.enqueue(baseCallBack);
    }


    /**
     * 获取重点区域列表
     */
    public void getKeyAreaList(Map<String, Object> map, BaseCallBack<BaseResult<KeyAreaBean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<KeyAreaBean>> resultCall = service.getKeyAreaList(map);
        resultCall.enqueue(baseCallBack);
    }
    /**
     * 获取重点区域详情
     */
    public void getKeyAreaDetail(Map<String, Object> map, BaseCallBack<BaseResult<KeyAreaDetailBean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<KeyAreaDetailBean>> resultCall = service.getKeyAreaDetail(map);
        resultCall.enqueue(baseCallBack);
    }
    /**
     * 重点区域删除
     */
    public void KeyAreaDelete(Map<String, Object> map, BaseCallBack<BaseResult<Boolean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<Boolean>> resultCall = service.KeyAreaDelete(map);
        resultCall.enqueue(baseCallBack);
    }

    /**
     * 重点区域新增/编辑/同名
     */
    public void AddKeyArea(String path,Map<String, Object> map, BaseCallBack<BaseResult<Boolean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<Boolean>> resultCall = service.AddKeyArea(path,map);
        resultCall.enqueue(baseCallBack);
    }

    /**
     * 获取重点行业列表
     */
    public void getKeyTradesList(Map<String, Object> map, BaseCallBack<BaseResult<KeyTradesBean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<KeyTradesBean>> resultCall = service.getKeyTradesList(map);
        resultCall.enqueue(baseCallBack);
    }

    /**
     * 获取重点行业详情
     */
    public void getKeyTradesDetail(Map<String, Object> map, BaseCallBack<BaseResult<KeyTradesDetailBean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<KeyTradesDetailBean>> resultCall = service.getKeyTradesDetail(map);
        resultCall.enqueue(baseCallBack);
    }

    /**
     * 重点行业删除
     */
    public void KeyTradesDelete(Map<String, Object> map, BaseCallBack<BaseResult<Boolean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<Boolean>> resultCall = service.KeyTradesDelete(map);
        resultCall.enqueue(baseCallBack);
    }


    /**
     * 重点行业新增/编辑/同名
     */
    public void AddKeyTrades(String path,Map<String, Object> map, BaseCallBack<BaseResult<Boolean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<Boolean>> resultCall = service.AddKeyTrades(path,map);
        resultCall.enqueue(baseCallBack);
    }


    /**
     * 获取非公有制经济组织列表列表
     */
    public void getEconomicOrganizationList(Map<String, Object> map, BaseCallBack<BaseResult<BasePageListBean<EconomicOrganizionBean>>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<BasePageListBean<EconomicOrganizionBean>>> resultCall = service.getEconomicOrganizationList(map);
        resultCall.enqueue(baseCallBack);
    }
    /**
     * 获取非公有制经济组织详情
     */
    public void getEconomicOrganizationDetail(Map<String, Object> map, BaseCallBack<BaseResult<EconomicOrganizionBean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<EconomicOrganizionBean>> resultCall = service.getEconomicOrganizationDetail(map);
        resultCall.enqueue(baseCallBack);
    }
    /**
     * 添加非公有制经济组织
     */
    public void addEconomicOrganization(Map<String, Object> map, BaseCallBack<BaseResult<Boolean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<Boolean>> resultCall = service.addEconomicOrganization(map);
        resultCall.enqueue(baseCallBack);
    }
    /**
     * 删除非公有制经济组织
     */
    public void deleteEconomicOrganization(Map<String, Object> map, BaseCallBack<BaseResult<Boolean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<Boolean>> resultCall = service.deleteEconomicOrganization(map);
        resultCall.enqueue(baseCallBack);
    }
    /**
     * 修改非公有制经济组织
     */
    public void updateEconomicOrganization(Map<String, Object> map, BaseCallBack<BaseResult<Boolean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<Boolean>> resultCall = service.updateEconomicOrganization(map);
        resultCall.enqueue(baseCallBack);
    }

    /**
     * 获取新社会组织列表
     */
    public void getNewSocietyOrganizationList(Map<String, Object> map, BaseCallBack<BaseResult<BasePageListBean<NewSocietyOrganizationBean>>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<BasePageListBean<NewSocietyOrganizationBean>>> resultCall = service.getNewSocietyOrganizationList(map);
        resultCall.enqueue(baseCallBack);
    }
    /**
     * 获取新社会组织详情
     */
    public void getNewSocietyOrganizationDetail(Map<String, Object> map, BaseCallBack<BaseResult<NewSocietyOrganizationBean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<NewSocietyOrganizationBean>> resultCall = service.getNewSocietyOrganizationDetail(map);
        resultCall.enqueue(baseCallBack);
    }
    /**
     * 添加新社会组织
     */
    public void addNewSocietyOrganization(Map<String, Object> map, BaseCallBack<BaseResult<Boolean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<Boolean>> resultCall = service.addNewSocietyOrganization(map);
        resultCall.enqueue(baseCallBack);
    }

    /**
     * 删除新社会组织
     */
    public void deleteNewSocietyOrganization(Map<String, Object> map, BaseCallBack<BaseResult<Boolean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<Boolean>> resultCall = service.deleteNewSocietyOrganization(map);
        resultCall.enqueue(baseCallBack);
    }
    /**
     * 修改新社会组织
     */
    public void updateNewSocietyOrganization(Map<String, Object> map, BaseCallBack<BaseResult<Boolean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<Boolean>> resultCall = service.updateNewSocietyOrganization(map);
        resultCall.enqueue(baseCallBack);
    }

    /**
     * 签到
     */
    public void setCheckIn(Map<String, Object> map, BaseCallBack<BaseResult<Boolean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<Boolean>> resultCall = service.setCheckIn(map);
        resultCall.enqueue(baseCallBack);
    }

    /**当前月签到列表
     */
    public void getCheckIn(Map<String, Object> map, BaseCallBack<BaseResult<List<String>>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<BaseResult<List<String>>> resultCall = service.getCheckIn(map);
        resultCall.enqueue(baseCallBack);
    }
}
